package com.yeyks.activity.param;

import com.yeyks.common.annotation.StrNotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author shuai
 * @date 2019/11/28 13:20
 */
@Data
public class ActivityPrizeTwoAddParam implements Serializable {
    private static final long serialVersionUID = 6506690447760034584L;

    @ApiModelProperty(value = "一级奖品id")
    @NotNull(message = "一级奖品id不能为空")
    private Integer onePrizeId;

//    @StrNotEmpty(message = "奖品图片地址不能为空")
    @ApiModelProperty(value = "奖品图片地址")
    private String prizeImageUrl;

    @ApiModelProperty(value = "奖品中奖返回图片地址")
    private String prizeImageReturnUrl;

    @ApiModelProperty(value = "发行量(非优惠券类型必传)")
    private Integer pubCount;

    @ApiModelProperty(value = "奖品金额(优惠券可不填)")
    private Integer prizePrice;

//    @NotNull(message = "截至兑换日期不能为空")
    private Long endTime;

    @NotNull(message = "中奖权重不能为空")
    @ApiModelProperty(value = "百分比，中奖权重")
    private Double chancePercent;

    @ApiModelProperty(value = "优惠券id(非优惠券类型可不传)")
    private Integer couponId;

    @ApiModelProperty(value = "当前操作人id", hidden = true)
    private Integer operatorId;
}
